package cn.lger.icollege.dao;

import cn.lger.icollege.entity.AttendanceMessage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Code that Changed the World
 * Pro said
 * Created by Pro on 2018-04-14.
 */
@Repository
public interface AttendanceMessageDao extends JpaRepository<AttendanceMessage, String> {

    List<AttendanceMessage> findAllByToTeacher(String username, Sort sort);

}
